<?php


class Study
{
private $name;
private $age;
private $day;

public function __set($name, $value)
{
    $this-> $name = $value;
}
public function __get($name)
{
   $this->name;
}
}